import { Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';

@Component({
  selector: 'app-videoview',
  templateUrl: './videoview.component.html',
  styleUrls: ['./videoview.component.scss']
})
export class VideoviewComponent implements OnInit, OnChanges {
  @Input() videoUri: string;
  @Output() whenCloseViewer = new EventEmitter();
  constructor() { }

  ngOnInit() {
  }
  ngOnChanges(simpleChange: SimpleChanges) {
  }
  onCloseViwer() {
    if (this.whenCloseViewer) {
      this.whenCloseViewer.emit(this);
    }
  }
}
